package cn.teduymdj.jxc.pojo.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class CustomerAddNewDTO implements Serializable {
    private static final String VALIDATE_MESSAGE_PREFIX = "新增客户失败，";

    private Long id;//客户id;

    @NotNull(message = VALIDATE_MESSAGE_PREFIX+"请提供客户名称")
    private String name;//客户名称

    @NotNull(message = VALIDATE_MESSAGE_PREFIX+"请提供联系人")
    private String contacts;//联系人

    @NotNull(message = VALIDATE_MESSAGE_PREFIX+"请提供联系人电话")
    private String phoneNumber;//联系人电话

    @NotNull(message = VALIDATE_MESSAGE_PREFIX+"请提供客户地址")
    private String address;//客户地址


    private String remarks;//备注

    private Integer enable;//是否启用,1=启用,0=未启用




}
